import styled from 'styled-components'

export const PlayerListPanel = styled.div`
  position: absolute;
  left: 50%;
  bottom: 46px;
  z-index: -1;
  width: 986px;
  transform: translateX(-50%);
  background-color: #292929;
  overflow: hidden;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  &.playerPanel-hide {
    display: none;
  }
  .hd {
    background: url(${require('@/assets/img/playpanel_bg.png')}) no-repeat;
    .hdc {
      position: relative;
      height: 40px;
      h4 {
        position: absolute;
        left: 25px;
        top: 0;
        height: 39px;
        line-height: 39px;
        font-size: 14px;
        color: #fff;
        font-weight: 700;
      }
      .add-all,
      .clear-all {
        position: absolute;
        left: 400px;
        top: 10px;
        height: 15px;
        line-height: 15px;
        cursor: pointer;
        color: #989898;
        font-size: 12px;
        &:hover {
          color: #e2e2e2;
          text-decoration: underline;
          .icon {
            background-position: -88px -189px;
          }
        }
        .icon {
          display: inline-block;
          width: 25px;
          height: 25px;
          cursor: pointer;
          overflow: hidden;
          background-image: url(${require('@/assets/img/playbar_sprite.png')});
          background-position: -88px -163px;
          vertical-align: middle;
        }
      }
      .line {
        position: absolute;
        top: 15px;
        left: 482px;
        height: 15px;
        border-left: 1px solid #000;
        border-right: 1px solid #2c2c2c;
      }
      .clear-all {
        left: 494px;
        top: 14px;
        &:hover {
          .trush {
            background-position: -51px -20px;
          }
        }
        .trush {
          width: 13px;
          height: 16px;
          background-image: url(${require('@/assets/img/playlist_sprite.png')});
          background-position: -51px 0;
        }
      }

      .playing-name {
        position: absolute;
        left: 595px;
        top: 0;
        width: 346px;
        text-align: center;
        height: 39px;
        line-height: 39px;
        color: #fff;
        font-size: 14px;
      }
      .close {
        position: absolute;
        top: 6px;
        right: 8px;
        display: inline-block;
        width: 30px;
        height: 30px;
        background: url(${require('@/assets/img/playlist_sprite.png')})
          no-repeat;
        cursor: pointer;
        overflow: hidden;
        background-position: -195px 9px;
        &:hover {
          background-position: -195px -21px;
        }
      }
    }
  }

  .bd {
    height: 260px;
    position: relative;
    background-position: -1014px 0;
    background-repeat: repeat-y;
    background-color: #000;

    .imgbg {
      position: absolute;
      left: 2px;
      top: 0;
      width: 980px;
      height: auto;
      opacity: 0.01;
    }
    .mask {
      position: absolute;
      top: 0;
      z-index: 2;
      width: 556px;
      height: 260px;
      background-color: #121212;
    }
    .list-wrap {
      position: absolute;
      left: 2px;
      top: 0;
      z-index: 3;
      width: 553px;
      height: 260px;
      color: #989898;
      ul {
        li {
          overflow: hidden;
          padding: 10px 0;
          &:hover {
            cursor: pointer;
          }
          .col {
            float: left;
          }
          .arrow {
            display: inline-block;
            width: 10px;
            height: 13px;
            cursor: pointer;
            overflow: hidden;
            background: url(${require('@/assets/img/playlist_sprite.png')})
              no-repeat;
            background-position: -182px 0;
            margin: 4px 10px 0 10px;
            visibility: hidden;
          }
          .name {
            width: 280px;
          }
          .singers {
            width: 70px;
            margin: 0 10px;
            float: left;
            height: 20px;
            .singer-item {
              float: left;
            }
          }
          .duration {
            margin: 0 10px;
          }
          .link {
            display: inline-block;
            width: 14px;
            height: 16px;
            background: url(${require('@/assets/img/playlist_sprite.png')})
              no-repeat;
            cursor: pointer;
            overflow: hidden;
            background-position: -80px 0;
            margin-top: 2px;
            &:hover {
              background-position: -80px -20px;
            }
          }
          .icons {
            margin-top: 4px;
            visibility: hidden;
            overflow: hidden;
            .ico {
              float: left;
              margin: 0 3px;
              display: inline-block;
              width: 16px;
              height: 16px;
              background: url(${require('@/assets/img/playlist_sprite.png')})
                no-repeat;
              cursor: pointer;
              overflow: hidden;
              &.like {
                background-position: -24px 0;
                &:hover {
                  background-position: -24px -20px;
                }
              }
              &.share {
                background-position: 0 0;
                &:hover {
                  background-position: 0 -20px;
                }
              }
              &.trush {
                background-position: -51px 0;
                &:hover {
                  background-position: -51px -20px;
                }
              }
            }
          }
          &:hover {
            color: #fff;
            background-color: #000;
            .icons {
              visibility: visible;
            }
          }
        }
        .current {
          background-color: #000;
          .arrow {
            visibility: visible;
          }
        }
      }
    }

    .list-lyric {
      position: absolute;
      right: 4px;
      top: 0;
      height: 260px;
      width: 421px;
      background-color: rgb(26, 26, 26);
      opacity: 0.7;
      ul {
        li {
          width: 100%;
          color: #989898;
          word-wrap: break-word;
          text-align: center;
          line-height: 32px;
          transition: color 0.3s;
          font-size: 12px;
          ${(props) => props.theme.mixin.textNoWrap}
          &.current {
            color: #fff;
          }
        }
      }
    }
  }
`
